package com.yuan.transportation;

import com.yuan.education.School;

public class Vehicle{
	private String type;
	private String color;
	private School school;
	public Vehicle(){

	}
	public void setType(String type){
		this.type = type;
	}
	public String getType(){
		return type;
	}
	public void setColor(String color){
		this.color = color;
	}
	public String getColor(){
		return color;
	}
	public void setSchool(School school){
		this.school = school;
	}
	public School getSchool(){
		return school;
	}
	public void toSchool(String name){
		System.out.println(name + "骑" + getColor() + getType() + "去" + school.getAddress() + school.getName());
	}
}